package com.luych.commonModule.security;

import com.luych.common.constant.UserMessageConstant;
import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseStatus;

@Controller
public class SecurityController {

    @GetMapping("login")
    @ResponseStatus(value = HttpStatus.FORBIDDEN, reason = UserMessageConstant.error_NeedUserLogin)
    public String getLogin() {
        return UserMessageConstant.error_NeedUserLogin;
    }
}
